﻿using System;
using wojilu.ORM;

namespace wojilu.Apps.Qycms.Domain
{
    [Table("ybb_member_class")]
    [Serializable]
    public class Member_Class : ObjectBase<Member_Class>
    {
        public Member_Class() { }

        public Member_Class(String rankname, Int32 isinter, Int32 integra, Int32 isclass, Int32 lockin)
        {
            this.rankname = rankname;
            this.isinter = isinter;
            this.integra = integra;
            this.isclass = isclass;
            this.lockin = lockin;
            this.insert();
        }

        [NotNull(""), Column(Length = 150)]
        public String rankname { get; set; }

        [TinyInt, NotNull(""), Default(0), Column(Length = 1)]
        public Int32 isinter { get; set; }

        [NotNull(""), Default(100), Column(Length = 11)]
        public Int32 integra { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 isclass { get; set; }

        [TinyInt, NotNull(""), Default(1), Column(Length = 1)]
        public Int32 lockin { get; set; }

    }
}
